<?php
/* @var $this MovieController */
/* @var $model Movie */
/* @var $form CActiveForm */
?>

<div class="wide form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'action' => Yii::app()->createUrl($this->route),
        'method' => 'get',
            ));
    ?>

    <div class="row">
        <?php echo $form->label($model, 'id'); ?>
        <?php echo $form->textField($model, 'id', array('size' => 10, 'maxlength' => 10)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'title'); ?>
        <?php echo $form->textField($model, 'title', array('size' => 20, 'maxlength' => 255)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'free_image'); ?>
        <?php echo $form->checkBox($model, 'free_image'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'year'); ?>
        <?php echo $form->textField($model, 'year'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'duration'); ?>
        <?php echo $form->textField($model, 'duration', array('size' => 10, 'maxlength' => 10)); ?>
    </div>
    
    <div class="row">
        <?php echo $form->label($model, 'hidden'); ?>
        <?php echo $form->checkBox($model, 'hidden'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'wikipedia_url'); ?>
        <?php echo $form->textField($model, 'wikipedia_url', array('size' => 40, 'maxlength' => 255)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'youtube_id'); ?>
        <?php echo $form->textField($model, 'youtube_id', array('size' => 20, 'maxlength' => 255)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'kp_id'); ?>
        <?php echo $form->textField($model, 'kp_id', array('size' => 10, 'maxlength' => 10)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'kp_rating'); ?>
        <?php echo $form->textField($model, 'kp_rating', array('size' => 3, 'maxlength' => 3)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'imdb_rating'); ?>
        <?php echo $form->textField($model, 'imdb_rating', array('size' => 3, 'maxlength' => 3)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'language_id'); ?>
        <?php echo $form->dropDownList($model, 'language_id', $languages); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton(Yii::t('default', 'Search')); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- search-form -->